#include"Queue.h"
#include<algorithm>
#include<iostream>

int main()
{
	Stack p;

	StackInit(&p);
	StackPush(&p,1);
	StackPush(&p,2);
	StackPush(&p,3);

	cout << StackTop(&p) << endl;
	StackPop(&p);
	cout << StackTop(&p) << endl;
	StackPop(&p);
	cout << StackTop(&p) << endl;
	StackPop(&p);

	StackDestroy(&p);

	Queue pp;

	QueueInit(&pp);
	QueuePush(&pp, 1);
	QueuePush(&pp, 2);
	QueuePush(&pp, 3);

	cout << QueueFront(&pp) << endl;
	QueuePop(&pp);
	cout << QueueFront(&pp) << endl;
	QueuePop(&pp);
	cout << QueueFront(&pp) << endl;
	QueuePop(&pp);

	QueueDestroy(&pp);
	return 0;
}
